<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GonzalesAdminErrorLog.aspx.cs" Inherits="GonzalesAdminErrorLog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <link href="WebStyle.css" rel="stylesheet" type="text/css" />
    
    <script type="text/javascript" language="javascript" src="js/popcalendar.js"></script>
</head>
<body>
<form id="form1" runat="server">
  <input type="hidden" name="ModalResult" id="ModalResult" />
  <div>
    <table width="100%" border="0" cellspacing="1" cellpadding="8">
      <tr>
        <td class="PageTitle" style="width: 1119px"><asp:Label ID="Label_PageTitle" Text='Administration Panel' runat="server" />
        </td>
      </tr>
      <tr>
        <td style="width: 1119px"><table width="100%" border="0" cellspacing="1" cellpadding="2">
          <tr>
            <td width="170" rowspan="2" valign="top"><asp:Label CssClass="FormTitle" ID="Label_Information" runat="server" Text='System :: Error Log' /></td>
            <td width="8" rowspan="2" class="VerticalDivider"><p>&nbsp;</p>
                  <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p>
              <p>&nbsp;</p></td>
            <td valign="top"><asp:Table CellPadding="5" CellSpacing="0" ID="Table_MessageBox" Width="100%" runat="server" Visible="false">
              <asp:TableRow>
                <asp:TableCell CssClass="ErrorBox" ></asp:TableCell>
              </asp:TableRow>
            </asp:Table></td>
          </tr>
          <tr>
            <td valign="top"><table width="100%" border="0" cellpadding="2" cellspacing="0" class="FormBorder">
              <tr>
                <td class="TableResultCriteriaBar"><table width="100%" border="0" cellspacing="0" cellpadding="1">
                  <tr>
                    <td><asp:TextBox ID="TextBox_DateFrom" Columns="10" TextMode="SingleLine" runat="server" CssClass="FormTextBox" />
                              <asp:Label ID="Label_To" Text="To" runat="server" />                              
                              <asp:TextBox ID="TextBox_DateTo" Columns="10" TextMode="SingleLine" runat="server" CssClass="FormTextBox" />                              
                              <asp:TextBox ID="TextBox_ErrorID" runat="server" Text='[Error ID]' Columns="36" CssClass="FormTextBox" />                              
<asp:Button CssClass="FormButton" ID="Button_Search" runat="server" Text="Search" OnClick="Button_Search_Click" />
<asp:Button CssClass="FormButton" ID="Button_ClearLog" runat="server" Text="Clear Log" OnClick="Button_ClearLog_Click" /></td>
                    <td align="right"><asp:DropDownList CssClass="FormDropDown" ID="DropDownList_SortBy" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_SortBy_SelectedIndexChanged"></asp:DropDownList>
                              <asp:DropDownList CssClass="FormDropDown" ID="DropDownList_SortOrder" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_SortOrder_SelectedIndexChanged"></asp:DropDownList></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td valign="top">
                    <asp:GridView ID="GridViewResult" runat="server" AllowPaging="True" OnRowCreated="OnRowCreated" AutoGenerateColumns="False"
                        CssClass="FormBorder" PageSize="100" Width="100%" OnPageIndexChanging="GridViewResult_PageIndexChanging">
                        <Columns>
                            <asp:BoundField DataField="ID" HeaderText="Error ID">
                                <ItemStyle HorizontalAlign="Center" Width="120px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LogDateTimeInString" HeaderText="Date/Time">
                                <ItemStyle HorizontalAlign="Center" Width="100px" />
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Claimant" HeaderText="Logged by" HtmlEncode="False">
                                <ItemStyle HorizontalAlign="Center" Width="200px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Description" HeaderText="Description">
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                        </Columns>
                        <RowStyle CssClass="GridViewItem" />
                        <HeaderStyle CssClass="GridViewHeader" />
                    </asp:GridView>
                </td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table>
  </div>
</form>
</body>
</html>
